{{$this->related(4)->to($relatedPosts)}}
{{if ($relatedPosts->have()) :}}
<div class="joe_detail__related">
    <div class="joe_detail__related-title">相关推荐</div>
    <div class="joe_detail__related-content">
        {{while ($relatedPosts->next()) :}}
        <a class="item" href="{{$relatedPosts->permalink()}}" title="{{$relatedPosts->title()}}">
            <img class="lazyload" src="{{_getLazyload()}}" data-src="{{echo _getThumbnails($relatedPosts)[0]}}" alt="{{$relatedPosts->title()}}" />
            <h6>{{$relatedPosts->title()}}</h6>
        </a>
        {{endwhile}}
    </div>
</div>
{{endif}}